package OrederManagement.pojo;

public class OrderItem {
	private long id ;
	private int amount;
	private long storeGoodsId;
	private long ordersId;
	
	public OrderItem(){
		id=-1;
	}
	public OrderItem(long id ,int amount,long storeGoodsId,long ordersId){
		this.id=id;
		this.amount=amount;
		this.storeGoodsId=storeGoodsId;
		this.ordersId=ordersId;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public long getStoreGoodsId() {
		return storeGoodsId;
	}

	public void setStoreGoodsId(long storeGoodsId) {
		this.storeGoodsId = storeGoodsId;
	}

	public long getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(long ordersId) {
		this.ordersId = ordersId;
	}

	@Override
	public String toString() {
		return "OrderItem [id=" + id + ", amount=" + amount + ", storeGoodsId=" + storeGoodsId + ", ordersId="
				+ ordersId + "]";
	}
	
	
	

}
